import java.io.File;
import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str = sc.next();
        File f = new File(str);
        String t = getFileType(f);
        System.out.println(t);
    }

    public static String getFileType(File f) {
        String target = "";
        int index = f.getName().indexOf("."); // 找出 .出现的位置

        String dest = f.getName().substring(index);
        if (dest.equals(".docx")) {
            target = "DOCX文件";
            return target;
        }else if (dest.equals(".txt")) {
            target = "文本文档";
            return target;
        }else if (dest.equals(".java")) {
            target = "Java源文件";
            return target;
        }else {
            target = "文件类型不详";
            return target;
        }

    }
}
